Replication material for

	Computing quantities of interest and their uncertainty using Bayesian simulation
	
	Andreas Murr, University of Warwick, a.murr@warwick.ac.uk
	Richard Traunmueller, University of Mannheim, traunmueller@uni-mannheim.de
	Jeff Gill, American University, jgill@american.edu
	
---------------------------------------------------------------

1) R code

The three files 

- hainmueller-2014-candidate-ratings.R
- king-2000-voter-turnout.R
- western-1994-union-density.R

perform the analyses reported in the paper.

More specifically, 

- hainmueller-2014-candidate-ratings.R replicates Figures 1, 2
- king-2000-voter-turnout.R replicates Figures 3, 5, 6 and Table 3
- western-1994-union-density.R replicates Figures 4, 7

All figures are saved as pdfs:

- hainmueller-2014-candidate-ratings.R creates
	- figure-1.pdf
	- figure-2.pdf
- king-2000-voter-turnout.R creates
	- figure-3.pdf
	- figure-5-age.pdf
	- figure-5-education.pdf
	- figure-5-income.pdf
	- figure-5-white.pdf
	- figure-6-education-m1.pdf
	- figure-6-education-m2.pdf
- western-1994-union-density.R creates
	- simple_linear_informed_res.bug
	- figure-4.pdf
	- figure-7.pdf

Tables and numerical examples are printed in the console.

For the file and the corresponding text output see 

- log-file-hainmueller-2014-candidate-ratings.pdf
- log-file-king-2000-voter-turnout.pdf
- log-file-western-1994-union-density.pdf

2) Data

Each R script loads a data set:

- Script: hainmueller-2014-candidate-ratings.R
- Data: Hainmueller2014/candidate.dta
- Source: Hainmueller, Jens; Hopkins, Daniel J.; Yamamoto, Teppei, 2013, "Replication data for: Causal Inference in Conjoint Analysis: Understanding Multidimensional Choices via Stated Preference Experiments", https://doi.org/10.7910/DVN/THJYQR, Harvard Dataverse, V2, UNF:5:A5Jv8XldU7R73/D1xTL3Gw== [fileUNF]
- Downloaded: 27.01.2022

- Script: king-2000-voter-turnout.R
- Data: King2000/turnout.dta
- Source: King, Gary; Tomz, Michael; and Wittenberg, Jason, 2007, "Replication data for: Making the Most of Statistical Analyses: Improving Interpretation and Presentation", https://doi.org/10.7910/DVN/BDWIC3, Harvard Dataverse, V4, UNF:3:1VaLflZ/LfB+AISX+hBm1w== [fileUNF]
- Downloaded: 27.01.2022

- Script: western-1994-union-density.R
- Data: unionDensity (pscl)
- Source: Simon Jackman (2020). pscl: Classes and Methods for R Developed in the Political Science Computational Laboratory. United States Studies Centre, University of Sydney. Sydney, New South Wales, Australia. R package version 1.5.5. URL https://github.com/atahk/pscl/
- Downloaded: 27.01.2022
